package datasource.config;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import datasource.C3P0Utils;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * Created by Administrator on 2017/9/14.
 */
public class C3P0Config {
    public static ComboPooledDataSource cdps=null;
    static {
        cdps=new ComboPooledDataSource("mysql");
    }
    public static Connection geyConnection() throws SQLException {
        return C3P0Utils.getConnettion();
    }

}
